YHRWD

珂心泛舟

email
github

Setting up Chronocat on Linux

Cat

Before Starting....#

You need to have:

  • A server with available memory ≥2Gb 🖥(maybe 1G is also okay, test it yourself)
  • A pair of hands that can type ✋🤚
  • Basic reading comprehension skills👀

Notes#

This tutorial only provides installation methods, and the related resources are sourced from the Internet.
This tutorial is based on Docker, so it is recommended to have a basic understanding of Docker operations.
The server system for this tutorial is Debian 12, and friends using other systems need to adapt accordingly.

Prepare the container#

It is recommended to add sudo before each command.

Enter Screen#

This step is to keep the session alive and prevent accidental termination during the installation process.

screen -S chronocat

Please search for the operation of screen by yourself.

Create the container#

Execute the following command

sudo docker run -it \
-p 5500:5500 \
-p 6099:6099 \
-v ./Chronocat/config:/root/.chronocat/config
-v ./Chronocat/plugins:/root/LiteLoaderQQNT/plugins/
--name chronocat
debian

or

sudo docker run -it -p 5500:5500 -p 6099:6099 -v ./Chronocat/config:/root/.chronocat/config -v ./Chronocat/plugins:/root/LiteLoaderQQNT/plugins --name chronocat debian

Where port 5500 is the Satori server port, and 6099 is the port for the login service later.
If everything goes well
It will be like this:

image

Install the required packages#

Change the source (overseas machines can skip this step)#

First, execute apt update && apt install curl -y to install curl.
Then execute the source change script

bash <(curl -sSL https://linuxmirrors.cn/main.sh)

If there is no error, the following screen will appear:
image

Select your favorite source and press Enter ||USTC is the best!||

image
Next, you will be asked whether to enable the http protocol. It is recommended not to use it.
Follow the prompts in the script for the rest of the steps.

Install the software#

Execute the following command

apt update && apt install -y \
    libgtk-3-0 \
    libnotify4 \
    libnss3 \
    libxss1 \
    libxtst6 \
    xdg-utils \
    libatspi2.0-0 \
    libsecret-1-0 \
    unzip \
    libgbm1 \
    libasound2 \
    xvfb \
    curl \
    nano

There is nothing special about this step. The nano at the end of the software package can be replaced with your favorite text editor.

Install QQ & Liteloader#

QQ#

Very simple, run the following code

curl -o linuxqq.deb https://dldir1.qq.com/qqfile/qq/QQNT/852276c1/linuxqq_3.2.5-21453_amd64.deb && \
apt install ./linuxqq.deb -y && apt clean && rm linuxqq.deb

Wait for the installation to complete. If the download speed of your machine is too slow, you can manually download the installation package and upload it to the container for installation.

Liteloader#

Run the following commands as well

curl -L -o LiteLoaderQQNT.zip https://github.com/LiteLoaderQQNT/LiteLoaderQQNT/releases/download/1.0.3/LiteLoaderQQNT.zip && \
unzip LiteLoaderQQNT.zip -d /root/LiteLoaderQQNT && rm LiteLoaderQQNT.zip && \
sed -i '1s/^/require("\/root\/LiteLoaderQQNT");\n/' /opt/QQ/resources/app/app_launcher/index.js

Wait for it to finish

Install & Configure Chronocat#

First, press ctrl+A+D to exit the screen.
If there were no errors in the previous steps, the following folders will appear:

image

Then put your Chronocat and plugins into /root/Chronocat/plugins
The required plugins are as follows, please find the resources yourself:

image
Note: The folder should directly contain the main body of Chronocat, do not nest it in another folder.

Frozen Journey#

Start the script#

Return to the screen (execute screen -r)
Then create start.sh
Write the following content

#!/bin/bash
service dbus start
rm -f /tmp/.X1-lock
export DISPLAY=:1
Xvfb $DISPLAY -screen 0 1x1x16 &
sleep 2
qq --no-sandbox

Save and exit

Start!#

chmod +x start.sh
bash start.sh

There may be some errors during the running process, but it doesn't matter.👍🏻

Log in to QQ#

Visit http://ip:6099/api/panel/getQQLoginQRcode to scan the QR code and log in.

Docking#

I believe everyone can do it

If you have any questions

Leave a comment in the comment section

This article is synchronized and updated to xLog by Mix Space
The original link is https://lkyhr.link/posts/tutorial/cc_bot


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.